package main

import (
	"path/filepath"
	"runtime"
)

func getLocalPath(file string) string {
	_, filename, _, _ := runtime.Caller(0)
	return filepath.Join(filepath.Dir(filename), file)
}

func getPlistConfig() *PlistConfig {
	conf_file := getLocalPath("./conf.json")
	err, conf := NewConfig(conf_file)
	if err != nil {
		log.Error(err)
		panic(err)
	}
	
	return conf
}
